package com.tuling.mapper;

import com.tuling.entity.User;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.session.RowBounds;

import java.util.List;
import java.util.Map;

/***
 * @Author 徐庶   QQ:1092002729
 * @Slogan 致敬大师，致敬未来的你
 */
public interface UserMapper {

    User selectById(Integer id);

    void updateForName(String id,String username);

    List<User> queryUsers(RowBounds rowBounds);

    List<User> queryUserList( User user);

    List<User> queryUserListWithAnnotation(@Param(value = "user") User user);


    List<User> queryUserListByMap(Map<String, Object> map);


    void updateUser(@Param(value = "id") String id, String username);


    List<User> queryUserListByCondition(User user, Map<String, Object> map);


    List<User> queryUserListByAnnotationCondition(@Param(value = "user") User user, @Param(value = "map") Map<String, Object> map);
}
